<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>流水管理</title>
    <link rel="stylesheet" href="common/css/switchery/style.css">
    <link rel="stylesheet" href="common/js/datepicker/bootstrap-datetimepicker.css">
</head>
<body>

<section class="main padder">
    <div class="clearfix">
        <h4><i class="icon-list"></i> 流水列表</h4>
    </div>
    <div class="clearfix">
        <ul class="breadcrumb">
            <li><a href="#"><i class="icon-home"></i>首页</a></li>
            <li class="active"><i class="icon-list-ul"></i>兑换记录管理</li>
        </ul>
    </div>
    <section class="panel">
        <header class="panel-heading text-right">
            <ul class="nav nav-tabs pull-left">
                <li class="active"><a data-toggle="tab" id="tabToJifen" href="#jifen">积分兑换记录</a></li>
                <li class=""><a data-toggle="tab" id="tabToFama" href="#fama">验码兑换记录</a></li>
            </ul>
        </header>
        <div class="tab-content">
            <div id="jifen" class="tab-pane fade active in">
                <form id="queryJifenOrderPage" action="queryOrderPage" class="form-horizontal">
                    <div class="form-group">
                        <div class="col-lg-12">
                            <div class="col-lg-1 control-label">开始日期</div>
                            <div class="col-lg-2">
                                <input id="jifenStartTime" tabindex="11" data-parsley-trigger="change"
                                       readonly="readonly"
                                       class="input-small form-control datetimepicker" data-parsley-required="true"
                                       placeholder="开始时间" type="text"
                                       value="" size="16" name="startTime">
                            </div>
                            <div class="col-lg-1 control-label">结束日期</div>
                            <div class="col-lg-2">
                                <input id="jifenEndTime" tabindex="12" data-parsley-trigger="change" readonly="readonly"
                                       class="input-small form-control datetimepicker" data-parsley-required="true"
                                       placeholder="结束时间" type="text"
                                       value="" size="16" name="endTime">
                            </div>
                            <div class="col-lg-1 control-label">操作类型</div>
                            <div class="col-lg-1">
                                <input type="checkbox" name="statusList" value="01">
                                积分消费
                            </div>
                            <div class="col-lg-1">
                                <input type="checkbox" name="statusList" value="02">
                                消费撤销
                            </div>
                            <div class="col-lg-1">
                                <input type="checkbox" name="statusList" value="03">
                                积分冲正
                            </div>
                            <div class="col-lg-1">
                                <input type="checkbox" name="statusList" value="04">
                                冲正撤销
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-12">
                            <div class="col-lg-1 control-label">活动名称</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输入活动名称" data-parsley-maxlength="30"
                                       name="activityName">
                            </div>
                            <div class="col-lg-1 control-label">设备号</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输设备号" data-parsley-maxlength="30"
                                       name="enCode">
                            </div>
                            <div class="col-lg-1 control-label">门店名称</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="门店名称" data-parsley-maxlength="30"
                                       name="storeName">
                            </div>
                            <div class="col-lg-1 control-label">订单号</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="订单号" data-parsley-maxlength="30"
                                       name="orderNo">
                            </div>
                            <!--  <div class="col-lg-1 control-label">验证模式</div>
                              <div class="col-lg-2">
                                  <select class="form-control input-small">
                                      <option>机具验证</option>
                                      <option>充值验证</option>
                                  </select>
                              </div>-->
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-12">
                            <div class="col-lg-1 control-label">企业名称</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输入企业名称" data-parsley-maxlength="30"
                                       name="enterpriseName">
                            </div>
                            <div class="col-lg-1 control-label">卡号</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输入卡号" data-parsley-maxlength="30"
                                       name="cardNo">
                            </div>
                            <div class="col-lg-2">
                                <a href="#" id="searchJiFenCond" class="btn btn-primary">
                                    查询
                                </a>
                                <a href="#" id="exportJifen" class="btn btn-primary">
                                    导出
                                </a>
                            </div>
                        </div>
                    </div>
                </form>
                <div class="row">
                    <div class="col-lg-12">
                        <section class="panel">
                            <div class="pull-out">
                                <table class="table table-striped m-b-none" data-ride="datatables">
                                    <thead>
                                    <tr>
                                        <th width="10%">订单编号</th>
                                        <th width="8%">企业</th>
                                        <th width="8%">商铺</th>
                                        <th width="15%">门店</th>
                                        <th width="12%">活动名称</th>
                                        <th width="12%">时间</th>
                                        <th width="10%">状态</th>
                                        <th width="15%">积分</th>
                                        <th width="15%">设备号</th>
                                        <th width="15%">卡号</th>
                                        <th width="15%">验证结果</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                        </section>
                    </div>
                </div>
            </div>
            <div id="fama" class="tab-pane fade">
                <form id="queryOrderPage" action="queryOrderPage" class="form-horizontal">
                    <div class="form-group">
                        <div class="col-lg-12">
                            <div class="col-lg-1 control-label">开始日期</div>

                            <div class="col-lg-2"><!--<input id="startTime" name="startTime"
                                                           onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'endTime\')}'})"
                                                           type="text" class="input-small form-control Wdate"
                                                           style="height:35px;">-->
                                <input id="startTime" tabindex="11" data-parsley-trigger="change" readonly="readonly"
                                       class="input-small form-control datetimepicker" data-parsley-required="true"
                                       placeholder="开始时间" type="text"
                                       value="" size="16" name="startTime">
                                <!--      <input id="startTime" tabindex="11" data-parsley-trigger="change"
                                      class="input-small form-control datepicker" data-parsley-required="true"
                                      type="text"
                                      value="" size="16" name="startTime">-->
                            </div>
                            <div class="col-lg-1 control-label">结束日期</div>
                            <div class="col-lg-2"><!--<input id="endTime" name="endTime"
                                                           onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', minDate:'#F{$dp.$D(\'startTime\')}'})"
                                                           type="text" class="input-small form-control Wdate"
                                                           style="height:35px;">-->
                                <input id="endTime" tabindex="12" data-parsley-trigger="change" readonly="readonly"
                                       class="input-small form-control datetimepicker" data-parsley-required="true"
                                       placeholder="结束时间" type="text"
                                       value="" size="16" name="endTime">
                                <!--<input id="endTime" tabindex="11" data-parsley-trigger="change"-->
                                <!--class="input-small form-control datepicker" data-parsley-required="true"-->
                                <!--type="text"-->
                                <!--value="" size="16" name="endTime">-->
                            </div>
                            <div class="col-lg-1 control-label">操作类型</div>
                            <div class="col-lg-1">
                                <input type="checkbox" name="statusList" value="0">
                                消费
                            </div>
                            <div class="col-lg-1">
                                <input type="checkbox" name="statusList" value="2">
                                撤消
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-12">
                            <div class="col-lg-1 control-label">活动名称</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输入活动名称" data-parsley-maxlength="30"
                                       name="activityName">
                            </div>
                            <div class="col-lg-1 control-label">设备号</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输设备号" data-parsley-maxlength="30"
                                       name="enCode">
                            </div>
                            <div class="col-lg-1 control-label">门店名称</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="门店名称" data-parsley-maxlength="30"
                                       name="storeName">
                            </div>
                            <div class="col-lg-1 control-label">订单号</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="订单号" data-parsley-maxlength="30"
                                       name="orderNo">
                            </div>
                            <!--    <div class="col-lg-1 control-label">验证模式</div>
                                <div class="col-lg-2">
                                    <select class="form-control input-small">
                                        <option>机具验证</option>
                                        <option>充值验证</option>
                                    </select>
                                </div>-->
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-12">
                            <!--<div class="col-lg-1 control-label">活动日期</div>-->

                            <!--<div class="col-lg-2">&lt;!&ndash;<input id="startTime" name="startTime"-->
                            <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'endTime\')}'})"-->
                            <!--type="text" class="input-small form-control Wdate"-->
                            <!--style="height:35px;">&ndash;&gt;-->
                            <!--<input id="startTime" tabindex="11" data-parsley-trigger="change" readonly="readonly"-->
                            <!--class="input-small form-control datetimepicker" data-parsley-required="true"-->
                            <!--placeholder="开始时间" type="text"-->
                            <!--value="" size="16" name="startTime">-->
                            <!--&lt;!&ndash;      <input id="startTime" tabindex="11" data-parsley-trigger="change"-->
                            <!--class="input-small form-control datepicker" data-parsley-required="true"-->
                            <!--type="text"-->
                            <!--value="" size="16" name="startTime">&ndash;&gt;-->
                            <!--</div>-->
                            <!--<div class="col-lg-2">&lt;!&ndash;<input id="endTime" name="endTime"-->
                            <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', minDate:'#F{$dp.$D(\'startTime\')}'})"-->
                            <!--type="text" class="input-small form-control Wdate"-->
                            <!--style="height:35px;">&ndash;&gt;-->
                            <!--<input id="endTime" tabindex="12" data-parsley-trigger="change" readonly="readonly"-->
                            <!--class="input-small form-control datetimepicker" data-parsley-required="true"-->
                            <!--placeholder="结束时间" type="text"-->
                            <!--value="" size="16" name="endTime">-->
                            <!--&lt;!&ndash;<input id="endTime" tabindex="11" data-parsley-trigger="change"&ndash;&gt;-->
                            <!--&lt;!&ndash;class="input-small form-control datepicker" data-parsley-required="true"&ndash;&gt;-->
                            <!--&lt;!&ndash;type="text"&ndash;&gt;-->
                            <!--&lt;!&ndash;value="" size="16" name="endTime">&ndash;&gt;-->
                            <!--</div>-->
                            <div class="col-lg-1 control-label">企业名称</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输入企业名称" data-parsley-maxlength="30"
                                       name="enterpriseName">
                            </div>
                            <!--  <div class="col-lg-1">
                                  <input type="checkbox" name="statusList" value="01">
                                  已发码
                              </div>
                              <div class="col-lg-1">
                                  <input type="checkbox" name="statusList" value="02">
                                  已兑换
                              </div>
                              <div class="col-lg-1">
                                  <input type="checkbox" name="statusList" value="03">
                                  已撤回
                              </div>-->
                            <div class="col-lg-1 control-label">手机号</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输入手机号" data-parsley-maxlength="30"
                                       name="mobile">
                            </div>
                            <div class="col-lg-1 control-label">兑换码</div>
                            <div class="col-lg-2">
                                <input type="text" tabindex="1" class="form-control input-small parsley-validated"
                                       placeholder="请输入码" data-parsley-maxlength="30"
                                       name="code">
                            </div>
                            <div class="col-lg-2">
                                <a href="#" id="searchFamaCond" class="btn btn-primary">
                                    查询
                                </a>
                                <a href="#" id="export" class="btn btn-primary">
                                    导出
                                </a>
                            </div>
                        </div>
                    </div>
                </form>
                <div class="row">
                    <div class="col-lg-12">
                        <section class="panel">
                            <div class="pull-out">
                                <table class="table table-striped m-b-none" data-ride="datatables">
                                    <thead>
                                    <tr>
                                        <th width="10%">订单编号</th>
                                        <th width="8%">企业</th>
                                        <th width="8%">商铺</th>
                                        <th width="15%">门店</th>
                                        <th width="12%">活动名称</th>
                                        <th width="12%">时间</th>
                                        <th width="10%">状态</th>
                                        <th width="15%">码</th>
                                        <th width="15%">设备号</th>
                                        <th width="15%">电话</th>
                                        <th width="15%">验证结果</th>
                                        <th width="15%">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                        </section>
                    </div>
                </div>
            </div>
        </div>
    </section>
</section>

<script src="common/js/datepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="common/js/datepicker/bootstrap-datetimepicker.zh-CN.js" type="text/javascript"></script>
<script src="common/js/own/record.js" type="text/javascript"></script>
<script>
    $(".datetimepicker").each(function () {
        var $this = $(this);
        $this.datetimepicker({
            format: "yyyy-mm-dd hh:ii:ss",
            autoclose: true,
            language: 'zh-CN',
            todayHighlight: true
        });
    });
    $("#jifenStartTime").datetimepicker().on('hide', function (e) {
        $("#jifenEndTime").datetimepicker('setStartDate', $("#jifenStartTime").val());
    });
    $('#jifenEndTime').datetimepicker().on('hide', function (e) {
        $('#jifenStartTime').datetimepicker('setEndDate', $("#jifenEndTime").val());
    });
    $("#startTime").datetimepicker().on('hide', function (e) {
        $("#endTime").datetimepicker('setStartDate', $("#startTime").val());
    });
    $('#endTime').datetimepicker().on('hide', function (e) {
        $('#startTime').datetimepicker('setEndDate', $("#endTime").val());
    });
</script>
</body>
</html>